package net.xumf.support.model.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EmailBO {

    // 标题
    private String title;
    // 接收者email
    private String[] receiver;
    // 发送者email
    private String sender;
    // 发送内容
    private String content;

    public void setReceiver(String[] receiver) {
        this.receiver = receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = new String[]{receiver};
    }
}
